home *** CD-ROM | disk | FTP | other *** search
/ Amiga Plus 1995 #5 & #6 / Amiga Plus CD - 1995 - No. 5 and 6.iso / tex / mf / inputs / passaulogos / fmilogo50.mf < prev    next >
Text File  |  1994-06-09  |  3KB  |  96 lines

  1. %
  2. % this is file 'fmilogo50mm.mf' written by Stefan Gastinger, August 1988.
  3.  
  4. %mode = sun;
  5. mode=CanonCX;
  6. mode_setup;
  7.  
  8. %%% Weite und Hoehe des Zeichens im Originalzustand:
  9. %%% Einheiten sind uninteressant, diese kuerzen sich mit
  10. %%% denen der unten eingegebenen Koordinaten weg.
  11.     inputwidth    = 110.5;
  12.     inputheight   = 111.2;
  13.  
  14. %%% Weite und Hoehe des gedruckten Zeichens:
  15.     %outputwidth#  = 12pt#;
  16.     %outputheight# = 12pt#;
  17.     outputwidth#  = 50mm#;
  18.     outputheight# = 50mm#;
  19.  
  20. %%% Umrechnen der absoluten Ausgabe-Angaben in korrekte Pixelwerte:
  21.     define_pixels(outputwidth,outputheight);
  22.  
  23. %%% Das Zeichen liegt auf dem grossen "P":
  24.     beginchar("P",outputwidth#,outputheight#,0); "The letter P";
  25.  
  26. %%% Alle Laengenangaben sind i.f. Prozentangaben.
  27.     x = outputwidth/inputwidth;  
  28.     y = outputheight/inputheight;  
  29.  
  30. %%% Erst das "Pi" in schwarz zeichnen:
  31. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  32. %%% Oberer Querbalken:
  33. x1 =   1.5x;   y1 =  70.0y;   h1 =  14.0y; 
  34. x2 =  13.0x;   y2 =  82.2y;   h2 =   9.0y; 
  35. x3 =  30.0x;   y3 =  83.0y;   h3 =  12.0y; 
  36. x4 =  50.0x;   y4 =  78.0y;   h4 =  17.2y; 
  37. x5 =  70.0x;   y5 =  76.0y;   h5 =  15.5y; 
  38. x6 = 102.5x;   y6 =  88.0y;   h6 =  13.0y; 
  39.  
  40. y1  := y1 + 0.5h1;  penpos1(h1,90);
  41. y2  := y2 + 0.5h2;  penpos2(h2,90);
  42. y3  := y3 + 0.5h3;  penpos3(h3,90);
  43. y4  := y4 + 0.5h4;  penpos4(h4,90);
  44. y5  := y5 + 0.5h5;  penpos5(h5,90);
  45. y6  := y6 + 0.5h6;  penpos6(h6,90);
  46.  
  47. penstroke z1e..z2e..z3e..z4e..z5e..z6e;
  48.  
  49. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  50. %%% Linker Stuetzbalken:
  51. x7  =  32.5x;   y7  =  83.0y;   h7  =  15.5y; 
  52. x8  =  31.0x;   y8  =  30.0y;   h8  =  15.7y; 
  53. x9  =  30.5x;   y9  =  20.0y;   h9  =  14.5y; 
  54. x10 =  25.5x;   y10 =   9.2y;   h10 =  10.5y; 
  55. x11 =  20.0x;   y11 =   6.0y;   h11 =   6.0y; 
  56.  
  57. x7  := x7  + 0.5h7;   penpos7(h7,0);
  58. x8  := x8  + 0.5h8;   penpos8(h8,0);
  59. x9  := x9  + 0.5h9;   penpos9(h9,0);
  60. x10 := x10 + 0.5h10;  penpos10(h10,0);
  61. x11 := x11 + 0.5h11;  penpos11(h11,0);
  62.  
  63. penstroke z7e..z8e..z9e..z10e..z11e;
  64.  
  65. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  66. %%% Rechter Stuetzbalken:
  67. x12 =  60.5x;   y12 =  80.0y;   h12 =  15.0y; 
  68. x13 =  60.0x;   y13 =  40.0y;   h13 =  17.1y; 
  69. x12  := x12 + 0.5h12;  penpos12(h12,0);
  70. x13  := x13 + 0.5h13;  penpos13(h13,0);
  71.  
  72. z14 = (70x,24y);       penpos14(18.5x,20);
  73. z15 = (86x,15.5y);     penpos15(12.8x,66.5);
  74. z16 = (110x,27y);      penpos16(26.0x,90);
  75.  
  76. penstroke z12e..z13e{down}..z14e..z15e..z16e;
  77.  
  78. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  79.  
  80. %%% Dann merken wir uns das gezeichnete "Pi" in "negativ":
  81.     picture negativ; negativ = currentpicture;
  82.  
  83. %%% Aktuellen Bildschirm loeschen:
  84.     clearit;
  85.  
  86. %%% Schwarz ausgefuellten Kreis als Hintergrund zeichnen: 
  87.     fill (0,0.5outputheight)..(outputwidth,0.5outputheight)..cycle;
  88.  
  89. %%% Das gezeichnete "Pi" von diesem Kreis pixelweise subtrahieren:
  90.     currentpicture := currentpicture - negativ;
  91.  
  92. endchar;
  93. %showit;
  94. end;
  95.